/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 10:14:50
 * @LastEditors: wsh
 * @LastEditTime: 2024-02-05 16:28:01
 */
// 列表
const tableConfig = {
  stripe: true,
  border: true,
  maxHeight: '80vh',
  columns: [
    { label: '所属区', prop: 'areaName' },
    { label: '补贴类型', prop: 'subsidyTypeLabel' },
    { label: '补贴名称', prop: 'subsidyProjectName' },
    { label: '申请年月', prop: 'belongDateLabel' },
    { label: '机构个数', prop: 'orgNum' },
    { label: '申请金额', prop: 'applyAmount' },
    { label: '实际金额', prop: 'realAmount' },
    {
      label: '操作',
      prop: 'menu',
      width: 300,
      fixed: 'right',
    },
  ],
}

export const baseConfig = {
  pageName: '总表',
  // 数据字典
  dictcodes: ['SUBSIDY_TYPE',],//逗号分隔字符串
  rowKey: 'id',//唯一标识
  addLabel: '新增',
  // 删除插入
  // tipLabel: '',//展示名称字段
  // exportMqTopic: '',//导出标识
  api: {
    index: 'view_ofsSubsidyApplyThirdParty_countPage',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
  },
  auth: {
    index: 'view_ofsSubsidyApplyThirdParty_countPage',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
    // 批量搜索
    // mulitSet: 'mulitSet',
  },
  paramsObj: {},//默认传参
  // 当前行操作按钮
  menuBtn: [
    {
      icon: 'detail',
      label: '详情',
      type: 'primary',
      operate: 'Detial',
      auth: '',
      text: true,
      show: true,
    },
  ],
  dialogConfig: {
    width: '85%',
  },
  // 搜索
  searchConfig: {
    inline: true,
    showBtn: true,
    labelPosition: 'left',
    column: [
      {
        label: '补贴类型',
        prop: 'subsidyType',
        type: 'remoteSelect',
        code: 'SUBSIDY_TYPE',
        api: 'getDictItemList',
        filterKey: 'value',
        multiple: false,
        span: 8,
      },
      {
        label: '补贴名称',
        prop: 'subsidyProjectName',
        type: 'input',
        span: 8,
      },
      {
        label: '申请年月',
        prop: 'belongDateLabel',
        type: 'month',
        format: 'YYYY年M月',
        valueFormat: 'YYYY年M月',
        span: 8,
      },
    ],
  },
  tableConfig,
}
